<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>get</title>
</head>
<body>
<form method="get" action="#">
    <label>
        <p>姓名</p>
        <input type="text" name="username" id="username" />
    </label>
    <label>
        <p>内容</p>
        <textarea id="content" name="content" rows="10" cols="25"></textarea>
    </label>
    <input type="button" id="send" value="提交" />
</form>

<p>已有评论：</p>
<div id="resText">

</div>
<script src="../assets/Js/jquery.js"></script>
<script>
    $(document).ready(function(){
        $("#send").click(function(){
            $.get("get.php",{
                username:$('#username').val(),
                content:$('#content').val()
            }, function (data,textStatus) {
                $("#resText").html(data);
            });
        })
    })
</script>
</body>
</html>